package com.zhongshengnetwork.rightbe.https;

import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.widget.Toast;

import com.android.volley.AuthFailureError;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.VolleyLog;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.JsonRequest;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.zhongshengnetwork.rightbe.Constant.APIKey;
import com.zhongshengnetwork.rightbe.Constant.Constant;
import com.zhongshengnetwork.rightbe.CustomApplication;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;


/**
 * Created by GordonLjx on 2016/9/14.
 */
public class HttpsUtils {
    private static final int TimeOut = 50000;
    private static Handler handler = new Handler(Looper.getMainLooper());
    private static void onSuccess(final HttpCallBack callback, final String data) {
        if (null != callback) {
            handler.post(new Runnable() {
                public void run() {
                    // 需要在主线程的操作。
                    System.out.print("需要在主线程的操作\n");
                    callback.onSuccess(data);
                }
            });
        }
    }

    private static void onError(final HttpCallBack callback,final String msg) {
        if (null != callback) {
            handler.post(new Runnable() {
                public void run() {
                    // 需要在主线程的操作。
                    callback.onError(msg);
                }
            });
        }
    }

    //volley调试
    public static void testVolley(final HttpCallBack callback) {
        System.out.print("VolleyUtils" + "\n");
        JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Constant.HOST + "api/goods/gethomecontent.do", null,
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject response) {
                        callback.onSuccess(response.toString());
                    }
                }, new Response.ErrorListener() {
            @Override
            public void onErrorResponse(VolleyError error) {
                callback.onError(error.getMessage());
            }
        });
        jsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut,//默认超时时间，应设置一个稍微大点儿的，例如本处的500000
                DefaultRetryPolicy.DEFAULT_MAX_RETRIES,//默认最大尝试次数
                DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
         CustomApplication.requestQueue.add(jsonObjectRequest);
    }

    /**
     * 功能：获取验证码
     * @param map
     * @param callback
     */
    public static void getCodeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getcodeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：注册
     * @param map
     * @param callback
     */
    public static void registerDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.registerApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }


    /**
     * 功能：登陆
     * @param map
     * @param callback
     */
    public static void loginDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.loginApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：退出登陆
     * @param map
     * @param callback
     */
    public static void logoutDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.logoutApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：修改密码
     * @param map
     * @param callback
     */
    public static void changePasswordDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.changepasswordApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取绑定信息接口
     * @param map
     * @param callback
     */
    public static void getbindDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getbindApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：设置个性推荐接口
     * @param map
     * @param callback
     */
    public static void setPersonalizedDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.setPersonalizedApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：用户注销接口
     * @param map
     * @param callback
     */
    public static void userOffDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.userOffApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：绑定接口
     * @param map
     * @param callback
     */
    public static void bindaccountDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.bindaccountApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：验证账号
     * @param map
     * @param callback
     */
    public static void verifyaccountDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.verifyaccountApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：更换账号
     * @param map
     * @param callback
     */
    public static void changeaccountDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.changeaccountApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：修改用户信息
     * @param map
     * @param callback
     */
    public static void changeuserinfoDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.changeuserinfoApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取账户信息
     * @param map
     * @param callback
     */
    public static void getAccountInfoDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getWalletInfoApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        //onSuccess(callback,jsonObject.toString());
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                        //onError(callback,volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取账户明细
     * @param map
     * @param callback
     */
    public static void getAccountDetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getWalletDetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取通讯录好友
     * @param map
     * @param callback
     */
    public static void getAddressbookDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getAddressbookApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：查找好友
     * @param map
     * @param callback
     */
    public static void findFriendsDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.findFriendApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：添加好友
     * @param map
     * @param callback
     */
    public static void addFriendsDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.addFriendApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }


    /**
     * 功能：变更好友关系
     * @param map
     * @param callback
     */
    public static void changefriendtypeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.changefriendtypeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：备注好友昵称
     * @param map
     * @param callback
     */
    public static void markfriendDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.markfriendApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：更改好友认证关系
     * @param map
     * @param callback
     */
    public static void friendauthDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.friendauthApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取用户信息
     * @param map
     * @param callback
     */
    public static void getUserInfoDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getUserInfoApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取首页推荐内容
     * @param map
     * @param callback
     */
    public static void getHomecontentDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getHomecontentApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取在售商品列表
     * @param map
     * @param callback
     */
    public static void getSailGoodsListDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getSailGoodsListApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取商品详情
     * @param map
     * @param callback
     */
    public static void getGoodsDetailDo(int type, Map<String,String> map, final HttpCallBack callback){
        String url;
        if (type == 0){
            url = Constant.HOST + ApiUtils.getGoodsDetailBySailuuidApi;
        }else if(type == 1){
            url = Constant.HOST + ApiUtils.getGoodsDetailBySailidApi;
        }else {
            url = Constant.HOST + ApiUtils.getGoodsDetailByGoodsidApi;
        }
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取商品历史记录数
     * @param map
     * @param callback
     */
    public static void getGoodsSailcountDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getGoodsSailcountApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取商品购买号码记录
     * @param map
     * @param callback
     */
    public static void getGoodsBuyRecordDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getGoodsBuyRecordApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取商品所有购买记录
     * @param map
     * @param callback
     */
    public static void getGoodsAllBuyRecordDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getGoodsAllBuyRecordApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取支付信息
     * @param map
     * @param callback
     */
    public static void getPayInfoDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getPayInfoApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：余额支付
     * @param map
     * @param callback
     */
    public static void getBalancePayDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getBalancePayApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：积分支付
     * @param map
     * @param callback
     */
    public static void getJifenPayDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getJifenPayApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：经验支付
     * @param map
     * @param callback
     */
    public static void getJingyanPayDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getJingyanPayApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取限购商品
     * @param map
     * @param callback
     */
    public static void getLimitGoodsDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getLimitGoodsApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：根据类型获取商品
     * @param map
     * @param callback
     */
    public static void getGoodsByTypeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getGoodsByTypeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取购买记录
     * @param map
     * @param callback
     */
    public static void getShopRecordDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getShopRecordApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取的商品记录
     * @param map
     * @param callback
     */
    public static void getWinGoodsDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getWinGoodsApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取积分商品
     * @param map
     * @param callback
     */
    public static void getDryRecordDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getDryRecordApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取订单详情
     * @param map
     * @param callback
     */
    public static void getOrderDetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getOrderDetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取物流详情
     * @param map
     * @param callback
     */
    public static void getLogisticalDetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getLogisticalDetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：发布晒单
     * @param map
     * @param callback
     */
    public static void publishDryDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.publishDryApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取晒单列表
     * @param map
     * @param callback
     */
    public static void getDryListDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getDryListApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取晒单详情
     * @param map
     * @param callback
     */
    public static void getDryDetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getDryDetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取晒单评论
     * @param map
     * @param callback
     */
    public static void getDryCommentDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getDryCommentApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：添加晒单评论
     * @param map
     * @param callback
     */
    public static void addDryCommentDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.commentdryApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取账号明细
     * @param map
     * @param callback
     */
    public static void getRechargeDetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getRechargeDetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：积分兑换
     * @param map
     * @param callback
     */
    public static void jifenexchangeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.jifenexchangeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：签到
     * @param map
     * @param callback
     */
    public static void signDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.signApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取购物车剩余购物数量
     * @param map
     * @param callback
     */
    public static void getShopcarLeftcountApiDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getShopcarLeftcountApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取商品图文详情
     * @param map
     * @param callback
     */
    public static void getGoodsTextPicDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getGoodsTextPicApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取计算详情
     * @param map
     * @param callback
     */
    public static void getPrizeDataDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getPrizeDataApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取公共开奖数据
     * @param map
     * @param callback
     */
    public static void getComPrizeDataDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getComPrizeDataApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取七牛云token
     * @param map
     * @param callback
     */
    public static void getQiniuTokenDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getQiniuTokenApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：发红包
     * @param map
     * @param callback
     */
    public static void publishRedDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.publishRedApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：打开红包
     * @param map
     * @param callback
     */
    public static void openRedDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.openRedApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取红包记录
     * @param map
     * @param callback
     */
    public static void getRedRecordDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getRedRecordApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取红包状态
     * @param map
     * @param callback
     */
    public static void getRedStateDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getRedStateApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：创建团
     * @param map
     * @param callback
     */
    public static void createGroupDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.createGroupApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取所有团
     * @param map
     * @param callback
     */
    public static void getUserGroupsDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getUserGroupsApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取群信息
     * @param map
     * @param callback
     */
    public static void getGroupInfoDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getGroupInfoApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取群成员信息
     * @param map
     * @param callback
     */
    public static void getGroupMemberDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getGroupMemberApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：异步获取群成员信息
     * @param map
     * @param callback
     */
    public static void getMemberDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getMemberApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：删除、退出、添加群
     * @param map
     * @param callback
     */
    public static void setgroupmemberDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.setgroupmemberApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：修改群信息
     * @param map
     * @param callback
     */
    public static void changeGroupInfoDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.changegroupinfoApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：修改群昵称
     * @param map
     * @param callback
     */
    public static void changeGroupNicknameDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.changegroupusernameApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取群信息
     * @param map
     * @param callback
     */
    public static void getinfoDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getinfoApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：申请加入群
     * @param map
     * @param callback
     */
    public static void joingroupDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.joingroupApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：充值
     * @param map
     * @param callback
     */
    public static void accountpayDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.accountpayApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：上传充值结果
     * @param map
     * @param callback
     */
    public static void payresultDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.payresultApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：看看谁加入了APP
     * @param map
     * @param callback
     */
    public static void getjoinuserDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getjoinuserApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：举报
     * @param map
     * @param callback
     */
    public static void reportDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.reportApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：转让团长管理权
     * @param map
     * @param callback
     */
    public static void changegroupownerDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.changegroupownerApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：反馈
     * @param map
     * @param callback
     */
    public static void feedDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.feedApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：反馈列表
     * @param map
     * @param callback
     */
    public static void feedlistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.feedlistApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：增加地址
     * @param map
     * @param callback
     */
    public static void addressDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.addressApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：修改地址
     * @param map
     * @param callback
     */
    public static void changeaddressDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.changeaddressApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：删除地址
     * @param map
     * @param callback
     */
    public static void deleteaddressDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.deleteaddressApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取地址列表
     * @param map
     * @param callback
     */
    public static void getaddresslistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getaddresslistApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取地址详情
     * @param map
     * @param callback
     */
    public static void getaddressdetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getaddressdetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：用户提交收货信息
     * @param map
     * @param callback
     */
    public static void submitaddressDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.submitaddressApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：用户确认收货
     * @param map
     * @param callback
     */
    public static void confirmgetgoodsDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.confirmgetgoodsApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取android版本号
     * @param map
     * @param callback
     */
    public static void getapkDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getapkApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取第三方绑定验证码
     * @param map
     * @param callback
     */
    public static void getthirdcodeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.getthirdcodeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：绑定第三方账号
     * @param map
     * @param callback
     */
    public static void bdthirdDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.bdthirdApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：第三方账号登陆
     * @param map
     * @param callback
     */
    public static void thirdloginDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.thirdloginApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：微信登陆
     * @param map
     * @param callback
     */
    public static void wxloginDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.wxloginApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：qq登陆
     * @param map
     * @param callback
     */
    public static void qqloginDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.qqloginApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：更新token
     * @param map
     * @param callback
     */
    public static void refreshDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.refreshApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：设置支付密码
     * @param map
     * @param callback
     */
    public static void safepayDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.safepayApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取图片表情列表
     * @param map
     * @param callback
     */
    public static void picListDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.picApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
                  myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：获取支付方式
     * @param map
     * @param callback
     */
    public static void paywayDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.paywayApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：搜索商品
     * @param map
     * @param callback
     */
    public static void searchDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.searchApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    //以下是一次性商品相关
    /**
     * 功能：一次性商品列表
     * @param map
     * @param callback
     */
    public static void saillistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.saillistApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：一次性商品详情
     * @param map
     * @param callback
     */
    public static void saildetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.saildetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：转转购商品详情
     * @param map
     * @param callback
     */
    public static void zzsaildetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.msdetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：一次性商品详情
     * @param map
     * @param callback
     */
    public static void commentslistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.commentslistApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：商品评论接口
     * @param map
     * @param callback
     */
    public static void commentsDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.commentsApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：发布生活圈
     * @param map
     * @param callback
     */
    public static void lifepublishDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifepublishApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：更新生活圈
     * @param map
     * @param callback
     */
    public static void lifeupdateDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifeupdateApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：生活圈列表
     * @param map
     * @param callback
     */
    public static void lifelistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifetableApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：生活圈列表新
     * @param map
     * @param callback
     */
    public static void lifetableDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifetableApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：生活圈详情
     * @param map
     * @param callback
     */
    public static void lifedetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifedetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：生活圈评论接口
     * @param map
     * @param callback
     */
    public static void liftcommentDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifecommentApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：生活圈评论内容接口
     * @param map
     * @param callback
     */
    public static void liftcommentcontentDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifecommentcontentApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：生活圈评论列表
     * @param map
     * @param callback
     */
    public static void lifecommentlistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifecommentlistApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：生活圈评论回复列表
     * @param map
     * @param callback
     */
    public static void replylistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.replylistApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：评论笔芯
     * @param map
     * @param callback
     */
    public static void commentlikeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.commentlikeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：生活圈打赏列表
     * @param map
     * @param callback
     */
    public static void liferewardlistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.liferewardlistApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：关注
     * @param map
     * @param callback
     */
    public static void ilikeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.ilikeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：关注列表
     * @param map
     * @param callback
     */
    public static void ilikelistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.ilikelistApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：收藏
     * @param map
     * @param callback
     */
    public static void addlikeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.addlikeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：收藏列表
     * @param map
     * @param callback
     */
    public static void mylikeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.mylikeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：购物首页
     * @param map
     * @param callback
     */
    public static void shopHomeDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.goodshomeApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：转转购列表
     * @param map
     * @param callback
     */
    public static void mslistDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.mslistApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：转转购详情
     * @param map
     * @param callback
     */
    public static void msdetailDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.msdetailApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：参与转转购
     * @param map
     * @param callback
     */
    public static void zzDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.zzApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }
    /**
     * 功能：生活圈搜索
     * @param map
     * @param callback
     */
    public static void lifeSearchDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifesearchApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：生活圈专题
     * @param map
     * @param callback
     */
    public static void lifetopicDo(Map<String,String> map, final HttpCallBack callback){
        String url = Constant.HOST + ApiUtils.lifetopicApi;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );         CustomApplication.requestQueue.add(myJsonObjectRequest);
    }

    /**
     * 功能：小程序
     * @param map
     * @param callback
     */
    public static void miniAppDo(final Map<String, String> map, final String roter, final HttpCallBack callback){

        String url = Constant.MINIAPPHOST + roter;
        MyJsonObjectRequest myJsonObjectRequest = new MyJsonObjectRequest(
                url,
                MyJsonObjectRequest.appendParameter(url, map),
                new Response.Listener<JSONObject>() {
                    @Override
                    public void onResponse(JSONObject jsonObject) {
                        callback.onSuccess(jsonObject.toString());
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                        callback.onError(volleyError.getMessage());
                    }
                }
        );
        myJsonObjectRequest.setRetryPolicy( new DefaultRetryPolicy( TimeOut, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT ) );
        CustomApplication.requestQueue.add(myJsonObjectRequest);

    }


}
